package com.itheima;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class App {
    public static void main(String[] args) {
        JedisPool jedisPool = new JedisPool(new JedisPoolConfig(),"127.0.0.1",6379,10000,"inX97LOt5qTFy234Q8dGc5vH2W");
        Jedis jedis = jedisPool.getResource();

        String set = jedis.set("name", "itheima");
        System.out.println(set);
        jedis.close();
    }
}
